package com.fira.edu.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import java.util.Date;

@Data
@ApiModel(value="班级入参",description="班级管理入参")
public class ClassDTO {
    private String id;
//    @NotBlank(message = "租户ID不能为空")
    @ApiModelProperty(value = "租户", required = true)
    private String tenantId;
    @NotBlank(message = "班级类型不能为空")
    @ApiModelProperty(value = "班级类型", required = true)
    private String classType;
    @NotBlank(message = "课程ID不能为空")
    @ApiModelProperty(value = "课程", required = true)
    private String courseId;
    @NotBlank(message = "班级名称不能为空")
    @ApiModelProperty(value = "班级名称", required = true)
    private String className;
    @NotBlank(message = "是否学期班不能为空")
    @ApiModelProperty(value = "是否学期班", required = true)
    private String isTermClass;
    @NotBlank(message = "学年不能为空")
    @ApiModelProperty(value = "学年", required = true)
    private String classYear;
//    @NotBlank(message = "学期不能为空")
    @ApiModelProperty(value = "学期", required = true)
    private String classTerm;
    @NotBlank(message = "最大人数不能为空")
    @ApiModelProperty(value = "最大人数", required = true)
    private String classMaxStudent;
    @ApiModelProperty(value = "适龄范围")
    private String rangeOfAge;
    @ApiModelProperty(value = "授课老师")
    private String teacherId;
    @ApiModelProperty(value = "所在教室")
    private String classroomId;
    @ApiModelProperty(value = "班主任")
    private String headTeacherId;
    @ApiModelProperty(value = "开课日期")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date startClassDate;
    @ApiModelProperty(value = "备注")
    private String remark;

    private String teacherName;
}
